<template>
  <div class="correlation-mv h-full mt-2">
    <div v-if="!pcLoading">
      <mv-list
          :mvs="mvs"
      />
    </div>
  <loading v-else/>
  </div>
</template>

<script setup>
import {useStore} from "@/store/index";
import MvList from '@/components/MvList/index.vue'
import {useRoute} from "vue-router";
import {reactive, toRefs} from "vue";

const route = useRoute()
const store = useStore()
const data = reactive({
  mvs: [], // mv数据
  pcLoading: true //
})
const {mvs, pcLoading} = toRefs(data)
// 设置tab下标
store.songTabIndex = 2


store.getArtistMv(route.query.id).then(mvs => {
  data.pcLoading = false
  data.mvs = mvs
  // console.log(mvs)
})

</script>

<style scoped>

</style>
